import request from '@/utils/request'
export function insert_node(data) {
  return request({
    url: '/node/insert_node',
    method: 'post',
    data
  })
}

export function update_node(data) {
  return request({
    url: '/node/update_node',
    method: 'post',
    data
  })
}

export function node_list(data) {
  return request({
    url: '/node/node_list',
    method: 'post',
    data
  })
}

export function delete_node(id) {
  return request({
    url: '/node/delete_node/' + id,
    method: 'get'
  })
}

export function connect_status(id) {
  return request({
    url: '/node/connect_status/' + id,
    method: 'get'
  })
}

export function sel_node() {
  return request({
    url: '/node/get_node',
    method: 'get'
  })
}
